/***********************************************************************
    filename:   DaterMainGroupManager.h
    created:    10/4/2012
    author:     4Ys

    purpose:    Defines class for MainGroupManager objects in UI
*************************************************************************/
#ifndef _DaterMainGroupManagerWindow_h_
#define _DaterMainGroupManagerWindow_h_

#include "DaterMainWindow.h"

#include <vector>

class MainGroupManagerWindow : public MainWindow
{
	/* !
	\brief
		The Events in Day version.
	*/
public:
		/* !
		\brief
			Construct the sample of class MainCalendarDayWindow.

		\param id_name
			- a string to represent the prefix of the window.
			
		\param parent
			- point to parent window.
		*/
	MainGroupManagerWindow(const CEGUI::String& id_name, CEGUI::Window* parent = 0);
	
		/* !
			Destructor of class MainCalendarDayWindow.
		*/
	~MainGroupManagerWindow();

		/* !
		\brief
			a virtual function generated from class MainCalendarWindow to show window.
		*/
	virtual void showWindow();
	
		/* !
		\brief
			a virtual function generated from class MainCalendarWindow to hide window.
		*/
	virtual void hideWindow();

		/* !
		\brief
			a function to go to group window.
		*/
	void gotoGroupWindow(MainWindow* targetGroupWindow);
	
		/* !
		\brief
			a function to go to previous window.
		*/
	void backToPreviousWindow();

private:
	void subscribeEvents();

	bool handle_back(const CEGUI::EventArgs &args);

	bool handle_addGroup(const CEGUI::EventArgs& args);

	std::vector<MainWindow*> _groupWindowStack;
};

#endif